import { request13 } from './request'

export function getOrders(user_id, limit = 10, offset = 0) {
  return request13({
    url: `/v2/users/${user_id}/orders`,
    params: {
      limit,
      offset
    }
  })
}

export function getSnapshot(user_id,unique_id) {
  return request13({
    url: `/v1/users/${user_id}/orders/${unique_id}/snapshot`
  })
}